package cn.sciento.transfer.infra.feign;

import cn.sciento.transfer.infra.feign.fallback.HfileRemoteServiceFallbackImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(serviceId = "${stong.service.file.name:stong-file}",contextId = "HfileRemoteService", fallback = HfileRemoteServiceFallbackImpl.class)
public interface HfileRemoteService {
  @PostMapping({"/v1/{organizationId}/files/byte"})
  ResponseEntity<String> uploadByteFile(@PathVariable Long paramLong, @RequestParam("bucketName") String paramString1, @RequestParam("fileName") String paramString2, @RequestParam("byte[]") byte[] paramArrayOfbyte);
}
